package com.sansui.FilterChiam;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

import com.sansui.Untls.Untls;

public class FilterSpilth extends FilterRegular {

	@Override
	public String filterRegular(String content) {
		BufferedReader br = new BufferedReader(new InputStreamReader(Untls.getStringInputStream(content)));
		String line = null;
		StringBuffer sb = new StringBuffer();		
		try {
			while((line = br.readLine()) != null){
				line = line.replace("<.{0 ,200}></.{0 ,200}>",",");
				sb.append(line);
				sb.append("\r\n");
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
		System.out.println(sb.toString());
		return sb.toString();
	}
	
}
